package com.acme.bankapp.domine.bank;

public abstract class AbstractAccount implements Account {

    private int id;
    private double balance;

    public AbstractAccount(final int id, final double amount) {
        this.id = id;
        balance = amount;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(final double balance) {
        this.balance = balance;
    }

    public int getId() {
        return id;
    }

    public int deposit(final double amount) {
        balance += amount;
        return 0;
    }

    public abstract int withdraw(final double amount);

}
